package com.youi.entity;

import java.io.Serializable;
import java.util.Date;

import com.youi.common.DelStatus;

/**
 * 团长绑定门店信息
 * @author XJY
 *
 */
public class Leaderstore implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long leaderId;						//团长id
	private Long storeId;						//门店id
	private String phone;					    //手机号码
	private Integer status;						//状态(-1未通过 0未审核 1已通过)
	private Integer useStatus;					//使用状态(0禁用 1启用)
	private Integer level;						//团长等级(0普通用户 1顶级团长 2二级团长)
	private Integer identity;					//认证身份(0非店长 1店长)
	private String authStore;					//认证门店名称
	private String authStoreCode;				//认证门店号
	private Date gmtReg;						//注册时间
	private Date gmtApply;						//审核时间
	private String reason;						//拒绝原因
	
	public Leaderstore() {
		// TODO Auto-generated constructor stub
	}
	
	public Leaderstore(Long leaderId,Long storeId,String phone,String authStore,String authStoreCode) {
		// TODO Auto-generated constructor stub
		this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.leaderId=leaderId;
        this.storeId=storeId;
        this.phone=phone;
        this.authStore=authStore;
        this.authStoreCode=authStoreCode;
        this.status=1;
        this.gmtReg=gmtCreated;
        this.gmtApply=gmtCreated;
        this.useStatus=1;
	}


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getGmtCreated() {
		return gmtCreated;
	}

	public void setGmtCreated(Date gmtCreated) {
		this.gmtCreated = gmtCreated;
	}

	public Integer getDelStatus() {
		return delStatus;
	}

	public void setDelStatus(Integer delStatus) {
		this.delStatus = delStatus;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public Long getLeaderId() {
		return leaderId;
	}

	public void setLeaderId(Long leaderId) {
		this.leaderId = leaderId;
	}

	public Long getStoreId() {
		return storeId;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getIdentity() {
		return identity;
	}

	public void setIdentity(Integer identity) {
		this.identity = identity;
	}

	public String getAuthStore() {
		return authStore;
	}

	public void setAuthStore(String authStore) {
		this.authStore = authStore;
	}

	public String getAuthStoreCode() {
		return authStoreCode;
	}

	public void setAuthStoreCode(String authStoreCode) {
		this.authStoreCode = authStoreCode;
	}

	public Date getGmtReg() {
		return gmtReg;
	}

	public void setGmtReg(Date gmtReg) {
		this.gmtReg = gmtReg;
	}

	public Date getGmtApply() {
		return gmtApply;
	}

	public void setGmtApply(Date gmtApply) {
		this.gmtApply = gmtApply;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public Integer getUseStatus() {
		return useStatus;
	}

	public void setUseStatus(Integer useStatus) {
		this.useStatus = useStatus;
	}

	@Override
	public String toString() {
		return "Leaderstore [id=" + id + ", gmtCreated=" + gmtCreated + ", delStatus=" + delStatus + ", gmtModify="
				+ gmtModify + ", leaderId=" + leaderId + ", storeId=" + storeId + ", phone=" + phone + ", status="
				+ status + ", useStatus=" + useStatus + ", level=" + level + ", identity=" + identity + ", authStore="
				+ authStore + ", authStoreCode=" + authStoreCode + ", gmtReg=" + gmtReg + ", gmtApply=" + gmtApply
				+ ", reason=" + reason + "]";
	}
	
}
